/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entidades;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author nivri
 */
@Entity
@Table(name = "agenda_servicios")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "AgendaServicios.findAll", query = "SELECT a FROM AgendaServicios a"),
    @NamedQuery(name = "AgendaServicios.findById", query = "SELECT a FROM AgendaServicios a WHERE a.id = :id"),
    @NamedQuery(name = "AgendaServicios.findByFkEstilista", query = "SELECT a FROM AgendaServicios a WHERE a.fkEstilista = :fkEstilista"),
    @NamedQuery(name = "AgendaServicios.findByFkServicio", query = "SELECT a FROM AgendaServicios a WHERE a.fkServicio = :fkServicio")})
public class AgendaServicios implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Size(min = 1, max = 36)
    @Column(name = "id")
    private String id;
    @Size(max = 36)
    @Column(name = "fk_estilista")
    private String fkEstilista;
    @Size(max = 45)
    @Column(name = "fk_servicio")
    private String fkServicio;

    public AgendaServicios() {
    }

    public AgendaServicios(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFkEstilista() {
        return fkEstilista;
    }

    public void setFkEstilista(String fkEstilista) {
        this.fkEstilista = fkEstilista;
    }

    public String getFkServicio() {
        return fkServicio;
    }

    public void setFkServicio(String fkServicio) {
        this.fkServicio = fkServicio;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof AgendaServicios)) {
            return false;
        }
        AgendaServicios other = (AgendaServicios) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entidades.AgendaServicios[ id=" + id + " ]";
    }
    
}
